/*
* pps_bom
*/
package com.pitop.project.api;

import com.pitop.project.entity.ProjectCategory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 项目分类 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class ProjectCategoryFeignApiImpl implements ProjectCategoryFeignApi {
    /**
     * 查询ProjectCategory一个详情信息
     *
     * @param id   id
     * @param code 编码
     * @return ProjectCategory
     */
    @Override
    public ProjectCategory load(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return new ProjectCategory();
    }


    /**
     * 根据条件id查询ProjectCategory一个详情信息
     *
     * @param id id
     * @return ProjectCategory
     */
    @Override
    public ProjectCategory loadById(@RequestParam("id") Long id) {
        return new ProjectCategory();
    }

    /**
     * 根据条件code查询ProjectCategory一个详情信息
     *
     * @param code 编码
     * @return ProjectCategory
     */
    @Override
    public ProjectCategory loadByCode(@RequestParam("code") String code) {
        return new ProjectCategory();
    }

    /**
     * 根据条件name查询ProjectCategory一个详情信息
     *
     * @param name  项目分类名称
     * @return ProjectCategory
     */

    @Override
    public ProjectCategory loadByName(@RequestParam("name") String name) {
        return null;
    }


    /**
     * 查询ProjectCategory信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<ProjectCategory> list(@RequestBody ProjectCategory projectCategory, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询ProjectCategory信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<ProjectCategory> listByPk(Long id, String code, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody ProjectCategory projectCategory) {
        return 0;
    }

    /**
     * 创建ProjectCategory
     *
     * @return ProjectCategory
     */
    @Override
    public ProjectCategory build(@RequestBody ProjectCategory projectCategory) {
        return new ProjectCategory();
    }

    /**
     * 修改ProjectCategory
     *
     * @return ProjectCategory
     */
    @Override
    public ProjectCategory modify(@RequestBody ProjectCategory projectCategory) {
        return new ProjectCategory();
    }

    /**
     * 删除ProjectCategory
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return;
    }
}
